import {get, post, del, put} from "@/apis/http/request";
import {RetailFxLevel} from "@/apis/model/setting/RetailFxLevelModel";

/**
* 得到列表
* @param params
*/
export const getRetailFxLevelList = (params: any) => get("/retailFxLevel/list", params)

/**
* 得到分页列表
* @param params
*/
export const retailFxLevelPage = (params: any) => post("/retailFxLevel/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteRetailFxLevelById = (id: number) => del("/retailFxLevel/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertRetailFxLevel = (param: RetailFxLevel) => post("/retailFxLevel", param)

/**
* 更新数据
* @param param
*/
export const updateRetailFxLevel = (param: RetailFxLevel) => put("/retailFxLevel", param)